home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / SHRLOCK.ARJ / SHERLOCK.DOC < prev    next >
Text File  |  1991-06-19  |  25KB  |  666 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                  S H E R L O C K
  8.  
  9.  
  10.  
  11.                    A Dual Window ASCII File Comparison Utility
  12.  
  13.  
  14.  
  15.               SHERLOCK is a commercial program and is copyrighted.
  16.               It is distributed using the Shareware marketing
  17.               concept.  The Shareware concept allows you to try the
  18.               fully functional program on your own computer before
  19.               you buy it.  If you continue to use SHERLOCK or keep
  20.               it for when you might use it, then you MUST send the
  21.               $25 registration fee to the author.  Press Function
  22.               Key 8 to print the registration form from the program.
  23.  
  24.               When you register SHERLOCK you will receive:
  25.  
  26.                     Telephone and mail support.
  27.                     A copy of the latest version of SHERLOCK
  28.                     Removal of Registration Screen & reminders.
  29.                     Skip the Registration Form reminder at the end
  30.                       of the program.
  31.                     A loan amortization program with both the
  32.                       BASIC source code and the compiled
  33.                       program. No registration is required for
  34.                       the amortization program. 
  35.                     Copies of PC-ACCOUNT and DISKLIST for you
  36.                       to try before registering.
  37.  
  38.  
  39.  
  40.  
  41.                                _______
  42.                           ____|__     |               (R)
  43.                        --|       |    |-------------------
  44.                          |   ____|__  |  Association of
  45.                          |  |       |_|  Shareware
  46.                          |__|   o   |    Professionals
  47.                        -----|   |   |---------------------
  48.                             |___|___|    MEMBER
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.                               Copyright 1988, 1991
  77.                              John P. Bauernschub, Jr.
  78.  
  79.                                    Gulf Sierra
  80.                                14809 Clavel Street
  81.                              Rockville, MD 20853-1543
  82.                                   301-460-0354
  83.  
  84.                               CompuServe ID 73270,77
  85.  
  86.  
  87.  
  88.  
  89.         OVERVIEW
  90.  
  91.         SHERLOCK is designed to do one job, compare two ASCII files line
  92.         by line.  When the lines do not match, SHERLOCK raises a flag.
  93.         At that point, you may scroll either or both files past the
  94.         mismatch to put them in sync and then continue.  SHERLOCK
  95.         contains features for searching, jumping around the files,
  96.         restarting, and copying lines to a printer.  SHERLOCK does not
  97.         write to either file.
  98.  
  99.         SHERLOCK is designed as a tool for programmers, writers and
  100.         workstation support personnel.  It is best on files like program
  101.         source files, AUTOEXEC.BAT, CONFIG.SYS, and text documents.
  102.  
  103.         SHERLOCK displays five lines of each file in separate windows.
  104.         The line from each file that is being compared is in the center
  105.         of the window and highlighted.  When the center lines in each
  106.         window do not match, a message indicating this pops up between
  107.         the windows.  The top line of each window frame displays the line
  108.         number of the center line and the name of the file.
  109.  
  110.  
  111.         FAST START
  112.  
  113.         SHERLOCK is started by entering one of the following commands:
  114.  
  115.                             SHERLOCK
  116.  
  117.                             SHERLOCK filename1
  118.  
  119.                             SHERLOCK filename1 filename2
  120.  
  121.                             SHERLOCK filename1 d:\*
  122.  
  123.         If you do not enter a filename or filenames, SHERLOCK will prompt
  124.         you.  If you want to have the exact same file in both windows for
  125.         learning SHERLOCK, enter only an asterisk for the second file
  126.         name.  SHERLOCK will substitute the first file name for the
  127.         asterisk.
  128.  
  129.         If you are comparing two files with the same name that are on
  130.         different disks or in different directories, enter the filename
  131.         that is in the current directory as filename1, either on the DOS
  132.         command line or at the prompt in SHERLOCK.  For the second file
  133.         name, enter the drive or path followed by an asterisk (no space
  134.         between the path and the asterisk).  Again, SHERLOCK will
  135.         substitute the first file name for the asterisk.
  136.  
  137.         These instructions will be easier to understand if you are
  138.         running SHERLOCK while you are reading them.  You can try each
  139.         function as you read about it.  Print a copy of these
  140.         instructions if you haven't done so.  They are about 15 pages.
  141.  
  142.  
  143.                                     -1- 
  144.  
  145.  
  146.  
  147.         To print them, use the DOS command:
  148.  
  149.                             COPY SHERLOCK.DOC PRN
  150.  
  151.         Use the file SHERLOCK.DOC as the text file to learn on.  To run
  152.         SHERLOCK with this file in both windows, enter the DOS command:
  153.  
  154.                             SHERLOCK SHERLOCK.DOC  *
  155.  
  156.         The asterisk causes the first file name, SHERLOCK.DOC, to be also
  157.         used as the second file name.
  158.  
  159.         SHERLOCK starts by displaying the title screen.  It explains how
  160.         to register this Shareware program.  The bottom line of the
  161.         screen prompts for an M if you are using a monochrome monitor,
  162.         otherwise press any other key to continue.  If there is NOT a
  163.         border line around the title screen on your display, press M.
  164.  
  165.         The following is a list of operations that can be activated by
  166.         function keys.
  167.  
  168.                            FUNCTION KEYS
  169.  
  170.                        FK 1    Help; also Shift FK 1 & Ctl FK 1
  171.                        FK 2    Jump to a Line
  172.                        FK 3    Search
  173.                        FK 4    Jump to DOS (Shell)
  174.                        FK 5    Open a New File
  175.                        FK 6    Reverse Scroll Action
  176.                        FK 7    Print Lines
  177.                        FK 8    Print Registration Form
  178.                        FK 9    Toggle Display ON/OFF
  179.                        FK 10   SCAN Start/Stop (Toggle)
  180.  
  181.         There are three help windows that contain most of the information
  182.         that you need to effectively operate SHERLOCK.
  183.  
  184.         H or Function Key 1 pops up help window #1.  Shift FK 1 pops up
  185.         help window #2.  Control FK 1 pops up help window #3.  Whenever a
  186.         help window is open, another help window can be viewed by
  187.         pressing its relative function key or number on either set of
  188.         numeric keys.
  189.  
  190.         You may step through the help windows by pressing the space bar,
  191.         the H key, the Up and Down arrows, and Page Up and Page Down.  So
  192.         if help window #1 is open, just press the number 3 to get the
  193.         third help window, then 2 to get the second, or whatever one you
  194.         want.  Or, just keep pressing H.  SHERLOCK turns the Num Lock on
  195.         and off for you so that you can use the digits 1, 2, 3.
  196.  
  197.         Functions 1, 2, 3, 4, 5, 7 and 8 open a window with information
  198.         or a menu.
  199.  
  200.  
  201.                                     -2- 
  202.  
  203.  
  204.  
  205.         Function 10 (or the Enter key) toggles the scan mode on and off.
  206.         The scan mode continuously scrolls the lines in each window one
  207.         line, then compares them.  The scan continues until two lines are
  208.         found that do not match, the end of either file is reached,
  209.         function key 10 (or the Enter key) is pressed again, or the ESC
  210.         key is pressed.
  211.  
  212.         Function key 9 (or the space bar) controls whether the text lines
  213.         will be displayed during the scan mode.  The reason for not
  214.         displaying the text during the scan mode is to speed the scan
  215.         rate.  Function key 9 (or the space bar) toggles a flag that
  216.         indicates the status of the display mode.  This flag is not
  217.         visible until the toggle is first pressed.  The text is always
  218.         displayed when the scan mode is off.  When the scan stops, all
  219.         lines are immediately displayed.
  220.  
  221.         Function key 6 reverses the direction that the text in the
  222.         windows will scroll when commanded by Page Up, Page Down, and the
  223.         Up and Down arrow keys.  The direction in effect is indicated by
  224.         an up or down arrow in the Function Key Window.
  225.  
  226.         The ESC key can be used to stop any activity in SHERLOCK.  It is
  227.         also used to exit the program.
  228.  
  229.         Function Key 1 produces the following list of the action keys
  230.         that move the text in the windows.  This is also Help Window 1.
  231.  
  232.                                   ACTION KEYS
  233.  
  234.                    Page Up            Scroll both windows up
  235.                    Page Down          Scroll both windows down
  236.                    Up   Arrow         Scroll top  window  up
  237.                    Down Arrow         Scroll top  window  down
  238.                    Shift Up   Arrow   Scroll botm window  up
  239.                    Shift Down Arrow   Scroll botm window  down
  240.                    Left  Arrow        Shift midlines left  20
  241.                    Right Arrow        Shift midlines right 20
  242.  
  243.                            Home       Beginning of Both files
  244.                            End        End of       Both files
  245.                    Control Home       Beginning of Top file
  246.                    Control End        End of       Top file
  247.                      Shift Home       Beginning of Bottom file
  248.                      Shift End        End of       Bottom file
  249.  
  250.                    Ins          Scroll top window until Match
  251.                    Del          Scroll botm window until Match
  252.                    ESC          STOP any activity, Quit Program
  253.  
  254.                                   Help Window 1
  255.  
  256.  
  257.  
  258.  
  259.                                     -3- 
  260.  
  261.  
  262.  
  263.         Help Window 2 provides reminders on additional action keys,
  264.         information on help, commands for editing input to prompts, and
  265.         commands for the search feature.  This window can be displayed by
  266.         pressing 2 when another help window is open or with Shift FK 1
  267.         otherwise.
  268.  
  269.                    RETURN = FK 10    Toggle SCAN      ON/OFF
  270.                    SPACE  = FK  9    Toggle Display   ON/OFF
  271.                      SHIFT with FK 10, RETURN, INS, or DEL
  272.                       Produces the defined action in the
  273.                               OPPOSITE Direction
  274.                   - - - - - - - -   H E L P   - - - - - - - -
  275.                     Activate the Three HELP Windows with H,
  276.                        FK 1, Shift FK 1, or Control FK 1
  277.                           Switch between them with H,
  278.                    Space, 1,2,3, FK1, FK2, FK3, PAGE UP-DOWN
  279.                   - - - - -  EDITING PROMPT INPUTS  - - - - -
  280.                         Input Line Scrolls Horizontally
  281.                             ESC Deletes Input Line
  282.                         Traditional Functions Work For:
  283.                   Left  Right  Home  End  Ins  Del  Backspace
  284.                   - - - - - - -   S E A R C H   - - - - - - -
  285.                               S of FK 3 - Search
  286.                           C - Continue a Search when
  287.                     Continue prompt is displayed at bottom
  288.  
  289.                                   Help Window 2
  290.  
  291.  
  292.         Help Window 3 is a reference on optimizing memory usage.  This
  293.         window can be displayed by pressing 3 when another help window is
  294.         open or with Control FK 1 otherwise.
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.                                     -4- 
  318.  
  319.  
  320.  
  321.                             Printer Control Commands
  322.                         L - Blank Line     E - Eject Page
  323.  
  324.                    - - - -   Optimizing Memory Usage   - - - -
  325.  
  326.                    M  Toggles the Display of FREE STRING SPACE
  327.                    Values Displayed in the TOP LEFT CORNER are:
  328.  
  329.                        aaaa   bbbb   cccc
  330.                        dddd   nnn
  331.  
  332.                      aaaa    Before Reading any Files
  333.                      bbbb       After Reading 1st File
  334.                      cccc          After Reading 2nd File
  335.                      dddd    Current FREE STRING SPACE
  336.                      nnn        Setting for Max Buffer Lines
  337.  
  338.                       Change the Max Buffer Lines with
  339.                          /B=nnn on the COMMAND Line
  340.  
  341.                                   Help Window 3
  342.  
  343.  
  344.         The SHIFTED commands - Page Up, Page Down, Home, End, and arrows
  345.         - now work on enhanced keyboards that have cursor keys separate
  346.         from the numeric keypad.  These commands still work on the
  347.         numeric keypad.  Remember, shift always affects action in the
  348.         second window.  Even shift FK 1 displays the second help window.
  349.  
  350.         SHIFT with FK 10, RETURN, INS, or DEL produces the defined action
  351.         in the OPPOSITE Direction.
  352.  
  353.         If the scan mode is off, pressing ESC, Q, or X will open a window
  354.         to ask if you really want to quit SHERLOCK.  Pressing ESC, Q, X,
  355.         Y, or RETURN then will end SHERLOCK; any other key will continue
  356.         SHERLOCK.
  357.  
  358.         SHERLOCK uses the arrow keys on the numeric keypad and on the
  359.         separate cursor keypad.  SHERLOCK turns the Num Lock off when it
  360.         starts.  It turns it on again when you press a function key that
  361.         requests numeric input, then turns it off again.  So don't touch
  362.         the Num Lock key when using SHERLOCK, it's automatic.
  363.  
  364.         Function Key 4 puts you in DOS to run DOS programs.  The
  365.         technical term is Shell to DOS.  SHERLOCK has not ended and is
  366.         still in memory.  You may not have enough memory to run some
  367.         programs.  Enter the DOS command EXIT to return to SHERLOCK.  To
  368.         exit SHERLOCK when you are done and remove it from memory, press
  369.         ESC, Q, or X twice.
  370.  
  371.         SHERLOCK has the capability to perform a search.  You initiate a
  372.         search or change the search text by pressing Function Key 3 or S.
  373.  
  374.  
  375.                                     -5- 
  376.  
  377.  
  378.  
  379.         It prompts for input from a pop up window.  When a search is
  380.         initiated this way, the search starts at the highlighted line.
  381.         When a match is found, every occurrence of the matched text on
  382.         that line is highlighted.  There is a mode where all lines that
  383.         have a match can be sent to your printer.
  384.  
  385.         Whenever there is a string in the search buffer to search for,
  386.         the phrase "C = Continue Search" is displayed at the bottom of
  387.         your screen.  By pressing C, the search will continue on the next
  388.         line after the highlighted line.  If it doesn't find another
  389.         occurrence of the search string, it will tell you so and will
  390.         return to the line from where it started.
  391.  
  392.         When SHERLOCK is executing the Continue Search command, it opens
  393.         a window at the bottom of the screen to indicate its status.  If
  394.         SHERLOCK finds the string quickly and/or you have a fast
  395.         computer, this message will appear and disappear too quick to
  396.         read or even identify.
  397.  
  398.         Note the difference between Search and Continue Search.  Search
  399.         starts looking for a match at the beginning of the highlighted
  400.         line.  Continue Search starts looking at the line after the
  401.         highlighted line.
  402.  
  403.         When SHERLOCK prompts for text input such as a filename or search
  404.         text, the input can be edited with all the usual keyboard editing
  405.         functions.  The entire input line can be erased with the ESC key.
  406.         When the insert mode is on, the word INSERT is displayed in the
  407.         lower right corner of the screen.  When the text line is too long
  408.         to fit in the window, the text will scroll horizontally.
  409.  
  410.         Function key 7 will print lines of the text files on your
  411.         printer.  It will also skip lines or eject pages (form feed).
  412.         You can print blank lines or eject a page when no function key
  413.         window is open.  Press the L key to skip a line or the E key to
  414.         eject a page.
  415.  
  416.         SHERLOCK will trap errors when your printer is OFF or OFF LINE.
  417.         A window will pop up to tell you so.  You may turn your printer
  418.         ON and ON LINE, then hit RETURN, and SHERLOCK will continue.  Or
  419.         press ESC, Q, or X and SHERLOCK will skip the printing.
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.                                     -6- 
  434.  
  435.  
  436.  
  437.                             *  *  *  *  *  *  *  *
  438.                             *    C A U T I O N   *
  439.         * * * * * * * * * * *                    * * * * * * * * * * * *
  440.  
  441.         Some computers do not respond for 30 to 60 seconds to the program
  442.         when a printer is OFF LINE or OFF.  In my experience this has
  443.         always occurred when the printer is ON but OFF LINE.  This
  444.         timeout period is controlled by DOS.  SHERLOCK will not be able
  445.         to display the error window until the DOS timeout period ends.
  446.         If you accidentally press L (Line Feed) or E (Eject Page) and
  447.         your printer is not ready, or it is not ready when you want to
  448.         print, then you may have to wait 30 to 60 seconds for SHERLOCK to
  449.         get back in control.  If SHERLOCK ever locks up, wait at least a
  450.         minute before rebooting.  You may not have to.
  451.  
  452.         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  453.  
  454.         SHERLOCK remembers when you select the parameter to use the
  455.         printer in the search mode until you change it in the "Find All &
  456.         send to printer" prompt.  However, if a printer error window pops
  457.         up and you select the option to quit printing, SHERLOCK will
  458.         change this search parameter to no printing.
  459.  
  460.         When a highlighted line is longer then 78 characters, the color
  461.         of the 78th character is black on white to alert you to the fact
  462.         that there is more text.  Press the right arrow key to see more
  463.         of the right end of the line.  This will scroll the center line
  464.         in both windows horizontally 20 characters for each press.  The
  465.         left arrow key scrolls the lines back.
  466.  
  467.         The animated title of SHERLOCK is now an option.  To activate it
  468.         for a single run, include in the command string
  469.  
  470.                                       /D
  471.  
  472.         after the file names.  You can permanently modify SHERLOCK so
  473.         that the title will always dance.  To do so, run SHERLOCK from
  474.         the default directory, i.e. SHERLOCK must be in the directory
  475.         that you are running from, and include
  476.  
  477.                                      /DANCE
  478.  
  479.         in the command string.  As always, the animated title can be
  480.         halted instantly by pressing any key.
  481.  
  482.         SHERLOCK requires 256 K of free memory and DOS 2.1 or later.
  483.  
  484.  
  485.         Technical Note:  Information in the following section is NOT
  486.         required for you to use SHERLOCK.  It is presented as technical
  487.         information for the serious computer user who enjoys optimizing
  488.         software for maximum performance.  Please skip to the next
  489.  
  490.  
  491.                                     -7- 
  492.  
  493.  
  494.  
  495.         section - SHAREWARE - if you wish.
  496.  
  497.         Regardless of how much memory your computer has, the compiler
  498.         used for SHERLOCK only allows about 64,000 bytes of memory for
  499.         string space.  The lines of data from the two files you are
  500.         comparing occupy this space.  There is no limit to the length of
  501.         the document SHERLOCK can process.  SHERLOCK keeps 200 lines of
  502.         each file in memory at a time.  When it gets to line 198, it
  503.         releases the first 100 lines and reads the next 100 lines from
  504.         your disk.
  505.  
  506.         SHERLOCK has a method for you to measure memory available so that
  507.         you can make adjustments to make optimum use of memory.  The M
  508.         command displays string memory usage.  This is a toggle, so it
  509.         turns the display on then off.  The M command causes numbers to
  510.         be displayed in the upper left corner of the screen in the
  511.         following relative positions.
  512.  
  513.         The numbers on the first line represent the values of the free
  514.         string space before reading files, after reading the first file,
  515.         and after reading the second file, respectively.
  516.  
  517.         The second line displays the current free string space and the
  518.         total file buffer size in lines.
  519.  
  520.         You may set total lines for the file buffer by entering
  521.  
  522.                                    /B=n
  523.  
  524.         after the file names, if any, on the command line.  n is a number
  525.         like 400.  The default is 200, which allocates 200 lines for each
  526.         file.  If you have enough memory, as indicated by first value on
  527.         the second line, and you scroll back and forth often, then a
  528.         larger value may increase speed by requiring less pausing for disk
  529.         access when manipulating long files.
  530.  
  531.  
  532.         SHAREWARE
  533.  
  534.         SHERLOCK is NOT a public domain program.  It is copyrighted and
  535.         distributed as Shareware.  SHERLOCK may be distributed on
  536.         bulletin boards, by computer user groups and by others who
  537.         distribute it for $10 or less.  SHERLOCK.EXE and SHERLOCK.DOC,
  538.         must be distributed together and unaltered.
  539.  
  540.         If after evaluating SHERLOCK, you decide to use it or keep it for
  541.         when you will need it, then you MUST submit the registration fee.
  542.         The registration form is at the end of the documentation and a
  543.         copy can be printed from SHERLOCK by pressing Function Key 8.
  544.  
  545.         For corporate or educational institution discounts on multiple
  546.         copies or site licenses, contact Gulf Sierra.
  547.  
  548.  
  549.                                     -8- 
  550.  
  551.  
  552.  
  553.         When you register SHERLOCK you will receive:
  554.  
  555.                   Telephone and mail support.
  556.                   A copy of the latest version of SHERLOCK
  557.                   A loan amortization program with both the
  558.                     BASIC source code and the compiled
  559.                     program.  No registration is required for
  560.                     the amortization program. 
  561.                   Copies of PC-ACCOUNT and DISKLIST for you
  562.                     to try before registering.
  563.  
  564.         Your registered copy of SHERLOCK will NOT display the Shareware
  565.         screen at the end of the program.
  566.  
  567.         Because I will send you all of this software, please indicate on
  568.         the registration form the size of the floppy disks that you can
  569.         use.
  570.  
  571.         Most copies of software on bulletin boards and even in software
  572.         vendor libraries are not the latest version.  It takes a long
  573.         time for these to get around, and most of the effort is placed on
  574.         the widest distribution of the initial release.  And with so much
  575.         emphases being placed on 'safe software' these days, where is
  576.         there a more reliable place to obtain your software than directly
  577.         from an ASP author.
  578.  
  579.         If you do not like SHERLOCK, please let me know that you tried it
  580.         and, if you wish, why you will not use it again.  Tell me what
  581.         features would have made SHERLOCK useful to you.  Many features
  582.         in my software were suggested by people who did not register.
  583.         And of course, many more were suggested by those who did
  584.         register.  You may use the registration form to reply and cross
  585.         out the word Registration.
  586.  
  587.         Please report discrepancies (bugs) that you find in SHERLOCK.
  588.         Include sufficient information for me to replicate the incident.
  589.         When I correct a bug, the person who reported it gets the first
  590.         revised copy.
  591.  
  592.         Whenever you write, please include your home phone number.  I
  593.         like to hear about your experiences with SHERLOCK.  You can also
  594.         send CompuServe Mail to me.  My CompuServe ID is 73270,77.  I
  595.         usually answer questions by phone on the weekend or early in the
  596.         evening Eastern time. 
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.                                     -9- 
  608.  
  609.  
  610.  
  611.         OMBUDSMAN
  612.  
  613.         I am a member of the Association of Shareware Professionals
  614.         (ASP).  ASP wants to make sure that the Shareware principle works
  615.         for you.  If you are unable to resolve a Shareware-related
  616.         problem with an ASP member by contacting the member directly, ASP
  617.         may be able to help.
  618.  
  619.         The ASP Ombudsman can help you resolve a dispute or problem with
  620.         an ASP member, but does not provide technical support for
  621.         members' products.  Please write to the ASP Ombudsman at 545
  622.         Grover Road, Muskegon, MI 49442-9427 or send a CompuServe message
  623.         via CompuServe mail to ASP Ombudsman 70007,3536.
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.                                     -10- 
  666.